<?php
// +----------------------------------------------------------------------
// | [KyPHP System] Copyright (c) 2020 http://www.kuryun.com/
// +----------------------------------------------------------------------
// | [KyPHP] 并不是自由软件,你可免费使用,未经许可不能去掉KyPHP相关版权
// +----------------------------------------------------------------------
// | Author: fudaoji <fdj@kuryun.cn>
// +----------------------------------------------------------------------

/**
 * Created by PhpStorm.
 * Script Name: Mp.php
 * Create: 2020/5/24 下午6:28
 * Description: 公众号验证器
 * Author: fudaoji<fdj@kuryun.cn>
 */

namespace app\common\validate;

use think\Validate;

class MpTemplatemsgTask extends Validate
{
    protected $rule = [
        '__token__' => 'require|token',
        'title'  =>  'require|max:50',
        'templatemsg_id' => 'require|min:1'
    ];

    //错误消息
    protected $message  =   [
        'title.require' => '任务名称必须',
        'templatemsg_id.require' => '请选择发送的消息',
    ];
}